package tool

import "MoSkeleton/framework/core/dto/request"

type GenDatasourcePageReq struct {
	request.BaseRequest
	request.PageInfo
	DatasourceName string `json:"datasourceName" form:"datasourceName"`
	Status         string `json:"status" form:"status"`
}

type GenDatasourceAddReq struct {
	DatasourceName string `json:"datasourceName" form:"datasourceName" binding:"required"`
	DatasourceType string `json:"datasourceType" form:"datasourceType"`
	Url            string `json:"url" form:"url"`
	ServerAddr     string `json:"serverAddr" form:"serverAddr"`
	Port           int32  `json:"port" form:"port"`
	DbName         string `json:"dbName" form:"dbName"`
	DbParam        string `json:"dbParam" form:"dbParam"`
	DbUsername     string `json:"dbUsername" form:"dbUsername"`
	DbPasswd       string `json:"dbPasswd" form:"dbPasswd"`
	ListOrder      int32  `json:"listOrder" form:"listOrder"`
	Status         string `json:"status" form:"status"`
	Remark         string `json:"remark" form:"remark"`
	CreatedBy      string `json:"createdBy" form:"createdBy"`
	UpdatedBy      string `json:"updatedBy" form:"updatedBy"`
}

type GenDatasourceUpdateReq struct {
	request.IDRequest
	DatasourceName string `json:"datasourceName" binding:"required"`
	DatasourceType string `json:"datasourceType"`
	Url            string `json:"url"`
	ServerAddr     string `json:"serverAddr"`
	Port           int32  `json:"port"`
	DbName         string `json:"dbName"`
	DbParam        string `json:"dbParam"`
	DbUsername     string `json:"dbUsername"`
	DbPasswd       string `json:"dbPasswd"`
	ListOrder      int32  `json:"listOrder"`
	Status         string `json:"status"`
	Remark         string `json:"remark"`
	UpdatedBy      string `json:"updatedBy"`
}
